﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ZOVNP.Model;
using ZOVNP.Model.Abstracts;

namespace ZOVNP.WinView.Workplaces.Administrator
{
    class AdministratorWorkplace : IWorkplace
    {
        private AdministratorMainControl _mainControl;
        public AdministratorWorkplace(IEngine engine)
        {
            Engine = engine;
        }

        public IEngine Engine { get; private set; }

        public void PopulateMainContainer(Control container)
        {
            _mainControl = new AdministratorMainControl(new Workspace((IDomainEngine)Engine));
            _mainControl.Dock = DockStyle.Fill;
            container.Controls.Add(_mainControl);
        }

        public void Save()
        {
            _mainControl.Save();
        }


        public void Add()
        {
            throw new NotImplementedException();
        }

        public void Edit()
        {
            throw new NotImplementedException();
        }

        public void Delete()
        {
            throw new NotImplementedException();
        }

        public void Refresh()
        {
            throw new NotImplementedException();
        }

        public void Print()
        {
            throw new NotImplementedException();
        }
    }
}
